package Lesson20;

public class ExceptionDemo 
{
	public static void main(String[] args) throws PersonException
	{
		Person ivan = new Person();
		Person maria = new Person();
		
		try {
			ivan.hasSameName(maria);
		} 
		catch (PersonException e) 
		{
			e.printStackTrace();
		}
		finally
		{
			System.out.println("WOOOW");
		}
		
		System.out.println("Ivan and Maria");
	}

}
